<template>
  <el-menu
    default-active="1"
    class="el-menu-vertical-demo"
    @open="handleOpen"
    @close="handleClose"
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b"
  >
    <el-menu-item index="2" @click="$router.push('/index')">
        <i class="el-icon-s-home"></i>
        <span slot="title">首页</span>
      </el-menu-item>
    <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-s-tools"></i>
        <span>系统设置</span>
      </template>
      <el-menu-item-group>
        <el-menu-item index="2-1" @click="$router.push('/user')">管理员管理</el-menu-item>
        <el-menu-item index="2-2" @click="$router.push('/a')">A页面管理</el-menu-item>
        <el-menu-item index="2-3" @click="$router.push('/table')">Table表格</el-menu-item>
        <el-menu-item index="2-4" @click="$router.push('/b')">B页面管理</el-menu-item>
        <el-menu-item index="2-5" @click="$router.push('/c')">C页面管理</el-menu-item>
        <el-menu-item index="2-6" @click="$router.push('/trees')">Tree树</el-menu-item>
      </el-menu-item-group>
    </el-submenu>
</el-menu>
</template>
<script type='text/javascript'>
export default {
  data () {
    return {}
  },
  methods: {
    handleOpen () {},
    handleClose () {}
  },
  components: {}
}
</script>
<style type='text/css' scoped>
  .el-menu {
    width: 150px;
    height: 100%;
    overflow: hidden;
  }
</style>
